<!--
*Author：富行天下团队

 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/Order/V_evaluate.js此处编写
 -->
<template>
  <div>
    <view-grid ref="grid" :columns="columns" :detail="detail" :editFormFields="editFormFields" :editFormFileds="editFormFields" :editFormOptions="editFormOptions"
      :searchFormFields="searchFormFields" :searchFormFileds="searchFormFields" :searchFormOptions="searchFormOptions" :table="table" :extend="extend">
    </view-grid>
  </div>
</template>

<script>
import extend from '@/extension/order/V_evaluate.js'
import ViewGrid from '@/components/basic/ViewGrid.vue'
var vueParam = {
  components: {
    ViewGrid,
  },
  data() {
    return {
      table: {
        key: 'id',
        footer: 'Foots',
        cnName: '评价管理',
        name: 'V_evaluate',
        url: '/V_evaluate/',
        sortName: 'id',
      },
      extend: extend,
      editFormFields: {},
      editFormOptions: [],
      searchFormFields: { orderNumber: '', userName: '' },
      searchFormOptions: [
        [
          { title: '订单号', field: 'orderNumber', type: 'like' },
          { title: '用户名称', field: 'userName', type: 'like' },
        ],
      ],
      columns: [
        { field: 'id', title: 'id', type: 'int', width: 60, require: true, align: 'left', sortable: true, hidden: true },
        { field: 'orderNumber', title: '订单号', type: 'string', width: 220, align: 'left' },
        { field: 'userName', title: '用户名称', type: 'string', width: 120, align: 'left' },
        { field: 'evaluateDate', title: '评价日期', type: 'datetime', width: 180, align: 'left', sortable: true },
        { field: 'auditId', title: '审核ID', type: 'int', width: 60, align: 'left', hidden: true },
        { field: 'auditor', title: '审核员', type: 'string', width: 120, align: 'left' },
        { field: 'auditStatus', title: '审核状态', type: 'int', width: 90, require: true, align: 'left', bind: { key: 'audit', data: [] } },
        //{field:'auditStatus',title:'审核状态',type:'int',width:90,require:true,align:'left'},
        { field: 'auditDate', title: '审核日期', type: 'datetime', width: 180, align: 'left', sortable: true },
        { field: 'auditreason', title: '审核原因', type: 'string', width: 220, require: true, align: 'left' },
        { field: 'image_url', title: '评价图片', type: 'imgupgrade', width: 190, align: 'left' },
        { field: 'sort', title: '分类', type: 'int', width: 60, align: 'left', hidden: true },
        { field: 'name', title: '商品名称', type: 'string', width: 220, align: 'left' },
        { field: 'content', title: '评论内容', type: 'string', width: 220, align: 'left' },
        { field: 'score', title: '分数', type: 'int', width: 60, align: 'left' },
      ],
      detail: {
        cnName: '#detailCnName',
        columns: [],
        sortName: '',
        key: '',
      },
    }
  },
}
export default vueParam
</script>
